import string,secrets

def get_int(length:int=5)->str:
    """
    生成指定长度的纯数字字符串
    :param length: 字符长度
    :return:
    """
    characters=string.digits
    ret="".join(secrets.choice(characters) for i in range(length))
    return ret




def genkey(length:int=32)->str:
    """
    生成指定长度的随机字符串
    :param length: 生成的字符串的长度
    :return: 字符串
    """
    characters=string.ascii_letters
    characters=characters+string.digits
    characters=characters+'!@$%&^*./=-'
    return "".join(secrets.choice(characters) for i in range(length))

if __name__ == '__main__':
    print(genkey(64))

